package com.mmp.main.servlet.device;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mmp.common.servlet.BasicServlet;
import com.mmp.main.entity.HospitalDepatment;
import com.mmp.main.entity.LookupDeviceCategory;

public class DeviceInfoDisplayServlet extends BasicServlet {

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("depList", dbm.findAll(HospitalDepatment.class));
		request.setAttribute("catList", dbm.findAll(LookupDeviceCategory.class));
		request.setAttribute("inUpdateMode", false);
		forward(request, response, "device/DeviceInfo.jsp");
	}
}
